package com.isunland.managesystem.ui;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import com.isunland.managesystem.R;
import com.isunland.managesystem.entity.OderSaleContent;

public class ShowOrderSaleDeatilActivity extends TableHeaderPagerActivity {
  private int[] titles = { R.string.order_detail, R.string.materiel_detail_list };
  private OderSaleContent mContent;

  @Override protected void onCreate(Bundle arg0) {
    mContent = (OderSaleContent) getIntent().getSerializableExtra(
        ShowOrderSaleDeatilFragment.EXTRA_CONTENT);
    super.onCreate(arg0);
  }

  @Override protected Fragment createFragmentOne() {

    return ShowOrderSaleDeatilFragment.newInstance(mContent);
  }

  @Override protected Fragment createFragmentTwo() {

    return MaterielListFragment.newInstance(mContent);
  }

  @Override protected int[] createTitle() {

    return titles;
  }

  @Override public int getHeaderPosition() {
    return 1;
  }
}
